package com.example.onlinemusic.service;

import com.example.onlinemusic.mapper.UserMapper;
import com.example.onlinemusic.model.User;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Resource
    private UserMapper userMapper;
    public User login(User loginUser){
        return userMapper.login(loginUser);
    }

    public User selectByName(String username){
        return userMapper.selectByName(username);
    }
}
